package cn.wolfcode.web.feign;

import cn.wolfcode.common.web.Result;
import cn.wolfcode.domain.SeckillProduct;
import cn.wolfcode.web.feign.fallback.SeckillProductFeignFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @author Gekor
 * @date Create on 2021/9/11 19:58
 */
@FeignClient(name = "seckill-service", fallback = SeckillProductFeignFallback.class)
public interface SeckillProductFeignApi {
	@RequestMapping("/seckillProduct/queryTime")
	public Result<List<SeckillProduct>> queryTime(@RequestParam Integer time);
}
